import request from '@/utils/request'
/**
 *
 * @param {username,pasword} data
 *
 */
export const register = (data) => {
  return request({
    method: 'POST',
    url: '/user/register',
    data
  })
}
export const login = (data) => {
  return request({
    method: 'POST',
    url: '/user/login',
    data
  })
}
